package com.merlin.meta.domain;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * 
* @ClassName:：MerlinMetaDomainApplication 
* @Description： 元数据领域服务启动类
* @author ：张海滨(zhanghbs)
* @date ：2019年11月13日 上午9:35:06 
*
 */
@MapperScan("com.merlin.meta.domain.dao")
@EnableTransactionManagement
@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(basePackages={"com.merlin.meta"},excludeFilters=@Filter(type=FilterType.REGEX,pattern={"com.merlin.framework.core.log.*"}))
public class MerlinMetaDomainApplication {
	/*@Bean
	Sampler sampler(){
		return span -> true;
	}*/ 
	public static void main(String[] args)
	{
		SpringApplication.run(MerlinMetaDomainApplication.class, args);
	}
}
